<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>01设置cookie</title>
	<script>
		// 设置cookie的格式
		// document.cookie = cookie名=cookie值
		// 一次只能写入一个cookie
		document.cookie = 'username=laoxie';
		document.cookie = 'gender=male';
		document.cookie = 'age=18';


		// 获取cookie
		// document.cookie
		console.log(document.cookie);
	</script>
</head>
<body>
	
</body>
</html>